home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-05-21 | 1.2 KB | 42 lines | [TEXT/KAHL] |
- # $BoilerPlate : issue std top comment for a source file
- # No input, set variables putInComment, file, author, company before
- # -no harm done if don't.
- # If you would prefer to have this go to the clip instead of stdout,
- # set toStdOut = 0 just below AND deselect the "Show stdout" checkbox
- # (pick this program after selecting hAWK from the EnterAct menu,
- # uncheck "Show stdout", and click "Save settings").
-
- BEGIN {
- toStdOut = 1; # to file stdout; if 0, output is to clipboard.
- if (putInComment+0)
- PrintOut("/****");
- PrintOut("\tFile.....:\t" " " file);
- # For time use day month date year
- match(TIME, /.*, [0-9][0-9][0-9][0-9]/);
- PrintOut("\tDate.....:\t" " " substr(TIME, RSTART, RLENGTH));
- # For copyright just use the year
- match(TIME, /[0-9][0-9][0-9][0-9]/);
- PrintOut("\t.........: ©" " " substr(TIME, RSTART, RLENGTH) " " company ". All rights reserved.");
- PrintOut("\tBy.......:\t" " " author);
- PrintOut("\tStatus...:\t under development");
- PrintOut("\tSpec.....:\t @");
- #PrintOut("\tRevisions:\t ");
-
- if (putInComment+0)
- PrintOut("****/");
-
- if (toStdOut == 0)
- {
- putclip(out);
- beep(0);
- }
- }
-
- function PrintOut(s)
- {
- if (toStdOut == 1)
- print s;
- else
- out = out s "\r";
- }
-